package com.rm.zeyou.service;

import com.github.pagehelper.PageInfo;
import com.rm.zeyou.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rm.zeyou.entity.User;
import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.vo.request.SelectMessageListVo;
import com.rm.zeyou.vo.response.SelectMessageListResponseVo;

/**
 * <p>
 * 消息表 服务类
 * </p>
 *
 * @author YanYang
 * @since 2025-03-13 09:51:59
 */
public interface MessageService extends IService<Message> {

    ApiRestResponse<PageInfo<SelectMessageListResponseVo>> selectMessageList(User user, SelectMessageListVo requestVo);

    ApiRestResponse<Integer> readMessage(User user, Long messageId);

    ApiRestResponse<Integer> deleteMessage(User user);
}
